package tk.djcrazy.instantmessage.service;

import tk.djcrazy.instantmessage.domain.FriendGroup;

public interface IFriendGroupService  {
	public void addFriendGroup(int ownUserId, String groupName);

	public void deleteFriendGroup(int groupId);

	public void addFriendIntoGroup(int groupId, int userId);

	public void deleteFriendFromGroup(int groupId, int userId);

	public void moveFriendFromGroupToGroup(int fromGroupId, int toGroupId,
			int userId);

	public void create(FriendGroup baseBean);

	public void delete(FriendGroup baseBean);
	
	public void save(FriendGroup friendGroup);

	public FriendGroup findById(int id);
}
